package com.example.jopewars;

import java.util.Random;

public class Drug {

	private Random randomizer;

	private int minPrice;

	private int maxPrice;

	private String name;

	private String cheapMessage;

	private String expensiveMessage;

	private boolean canBeCheap;

	private boolean canBeExpensive;

	public Drug() {
		randomizer = new Random();
	}

	public int getMinPrice() {
		return minPrice;
	}

	public void setMinPrice(int minPrice) {
		this.minPrice = minPrice;
	}

	public int getMaxPrice() {
		return maxPrice;
	}

	public void setMaxPrice(int maxPrice) {
		this.maxPrice = maxPrice;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isCheap() {
		if (canBeCheap)
			return randomizer.nextBoolean();
		else
			return false;
	}

	public boolean isExpensive() {
		if (canBeExpensive)
			return randomizer.nextBoolean();
		else
			return false;
	}

	public String getCheapMessage() {
		return cheapMessage;
	}

	public void setCheapMessage(String cheapMessage) {
		this.cheapMessage = cheapMessage;
	}

	public String getExpensiveMessage() {
		return expensiveMessage;
	}

	public void setCheap(boolean cheap) {
		this.canBeCheap = cheap;
	}

	public void setExpensive(boolean expensive) {
		this.canBeExpensive = expensive;
	}

	public void setExpensiveMessage(String expensiveMessage) {
		this.expensiveMessage = expensiveMessage;
	}

}
